package com.sztx.pay.center.rpc.service;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.sztx.pay.center.core.service.MqMessageService;
import com.sztx.pay.center.core.service.bean.BindCardMqMsg;
import com.sztx.se.core.context.SpringContextHolder;

public class MainClass {

	private static ClassPathXmlApplicationContext context;

	private static String configPath = "classpath*:spring-config.xml";

	public static void main(String[] args) {
		context = new ClassPathXmlApplicationContext(
				new String[] { configPath });
		context.start();
		
		
		
//		MqMessageService mqMessageService = SpringContextHolder.applicationContext.getBean("mqMessageService",MqMessageService.class);
//		BindCardMqMsg bindCardMqMsg = new BindCardMqMsg();
//		bindCardMqMsg.setBankId("600035");
//		bindCardMqMsg.setBankName("建设银行");
//		bindCardMqMsg.setBindCardNo("AC1234");
//		bindCardMqMsg.setBindType(1);
//		bindCardMqMsg.setCardActType(1);
//		bindCardMqMsg.setCardNo("511645645645");
//		bindCardMqMsg.setCardType(1);
//		bindCardMqMsg.setIdentityNo("51162116545645654655");
//		bindCardMqMsg.setIdentityType(1);
//		bindCardMqMsg.setMobileNo("13219075351");
//		bindCardMqMsg.setRealName("leiqian");
//		bindCardMqMsg.setUserId("83986576");
//		mqMessageService.sendBindCardMsg(bindCardMqMsg,"pay.center.bindcard");
		
		
	}
}
